package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanStatusInfo;
import com.landeb.shop.huo.bean.BeanUserData;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by blade on 2016/11/10.
 */

public interface UserConfirmationRequest {

    @FormUrlEncoded
    @POST("Public/send_smscode")
    Observable<BeanUserData> sendSmsCode(@Field("mobile") String mobile);

    @FormUrlEncoded
    @POST("Public/user_reg")
    Observable<BeanUserData> signUp(@Field("mobile") String mobile, @Field("smscode") String smsCode, @Field("password") String password);

    @FormUrlEncoded
    @POST("Public/user_login")
    Observable<BeanUserData> login(@Field("mobile") String mobile, @Field("password") String password,@Field("type") String type);

    @GET("User/user_logout")
    Observable<BeanStatusInfo> logout();

    @GET("User/user_info")
    Observable<BeanUserData> getUserInfo();

    @FormUrlEncoded
    @POST("User/user_update_password")
    Observable<BeanStatusInfo> changePassword(@Field("oldpassword") String oldPassword, @Field("password") String newPassword, @Field("repassword") String confirmPassword);

    @FormUrlEncoded
    @POST("POSTPublic/user_reset_password")
    Observable<BeanStatusInfo> getPassword(@Field("mobile") String phoneNum, @Field("smscode") String smsCode, @Field("password") String newPassword, @Field("repassword") String confirmPassword);

    @GET("User/sign")
    Observable<BeanStatusInfo> sign();



}
